package com.cn.designpatterns.ex.concrete.strategy;

/**
 * chose context strategy
 *
 * @author zhangyi
 * @date 2018/12/25 18:25
 */
public class ContextStrategy {

    private IStrategy iStrategy;

    public ContextStrategy(IStrategy iStrategy) {
        this.iStrategy = iStrategy;
    }

    public void getStrategy(){
        iStrategy.concreteStrategy();
    }
}
